projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16702f1
)
* src/xterm.c (handle_one_xevent): Fix translation of button events.
author
Po Lu
<luangruo@yahoo.com>
Sun, 27 Feb 2022 02:49:19 +0000
(10:49 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sun, 27 Feb 2022 02:49:19 +0000
(10:49 +0800)
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index 33a6613e1457c60401df06c345c7734b9318a72e..03bfbabf317a875051bc8b93861dcbaf59a3478c 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-11670,7
+11670,8
@@
handle_one_xevent (struct x_display_info *dpyinfo,
if (popup_activated ())
{
use_copy = true;
- copy.xbutton.type = ButtonRelease;
+ copy.xbutton.type = (xev->evtype == XI_ButtonPress
+ ? ButtonPress : ButtonRelease);
copy.xbutton.serial = xev->serial;
copy.xbutton.send_event = xev->send_event;
copy.xbutton.display = dpyinfo->display;